package tmt.usercenter.web.configure.emailservice;

import com.tmt.spring.validation.EmailHelper;

public class DefaultEmailSender implements IEmailSender {

    private String host;

    private String from;

    private String authCode;

    public DefaultEmailSender(String host, String from, String authCode){
        this.host = host;
        this.from = from;
        this.authCode = authCode;
    }

    @Override
    public boolean sendHtmlEmail(String to, String subject, String content) {
        return EmailHelper.sendHtmlEmail(host, from, authCode, to, subject, content);
    }
}
